package com.zlm.schedule;

import lombok.Data;

/**
 * @author zlm
 * @date 2025/4/1
 */
@Data
public class Job implements Comparable<Job>{

    private Runnable task;

    private long startTime;

    private long delay;

    @Override
    public int compareTo(Job o) {
        return Long.compare(startTime, o.getStartTime());
    }
}
